﻿using UnityEngine;
using UnityEditor;
using System.Collections;
using System.IO;

public class JsonPostProcessor : AssetPostprocessor 
{ 
	static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths)
	{ 
		foreach (var str in importedAssets)
		{
			//此目录应更换成项目配置表目录
			if (str.EndsWith(".json"))
			{
				GenConfigClass.CreateJsonClass(str);
			}
		}

		foreach (var str in deletedAssets)
		{
			Debug.Log("Deleted Asset: " + str);
			
		}

	}
}
